﻿namespace GoodAdmin.CodeGenerator;

public class CodeGenDataPageInput:BasePageInput
{
    /// <summary>
    /// 名称
    /// </summary>
    public string Name { get; set; }
    /// <summary>
    /// 分类
    /// </summary>
    public string Category { get; set; }
    /// <summary>
    /// 模板类型
    /// </summary>
    public string Type { get; set; }
}

public class CodeGenDataAddInput
{
    /// <summary>
    /// 名称
    /// </summary>
    [Required(ErrorMessage = "模板名称不能为空")]
    public string Name { get; set; }
    /// <summary>
    /// 编码
    /// </summary>
    [Required(ErrorMessage = "模板编码不能为空")]
    public string Code { get; set; }
    /// <summary>
    /// 类型
    /// Web设计,App设计,流程表单,Web表单,App表单.
    /// form表单，list列表，flow流程
    [Required(ErrorMessage = "模板类型不能为空")]
    public string Type { get; set; }
    /// <summary>
    /// 分类
    /// </summary>
    [Required(ErrorMessage = "模板分类不能为空")]
    public string Category { get; set; }
}
public class CodeGenDataUpdateInput : CodeGenDataAddInput
{
    [Required(ErrorMessage = "Id不能为空")]
    public long Id { get; set; }
}